import java.util.*;

public class Solution1 {
    String str = new String("helloa!"); // 底层操作的是基本数据类型，因此在传递方法时不会变
    char ch[] = new char[]{'a','b','c'};
    public static void main(String[] args) {

        Solution1 s = new Solution1();
        s.exchange(s.str,s.ch);
        System.out.println("str.toString() = " + s.str.toString());
        System.out.println("s.str = " + s.str);
        System.out.println("ch.toString() = " + s.ch[0]);
    }
    public  void exchange(String str1,char str2[]){
        str1 = "wogailfsafweafds";
        System.out.println("str1 = " + str1);

        str2[0] = 'g';
    }
}
